<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import { fetchBasicData } from "@/apis/indexPage.js"
import index from "@/components/index.vue"
import {
  ref,
  onBeforeMount,
  onMounted,
  onBeforeUpdate,
  onUpdated,
  onBeforeUnmount,
  onUnmounted
} from 'vue'


onBeforeMount(() => {
  fetchBasicData().then(response => {
    console.log(response)
  }).catch(error => {
    console.error(error); // 捕获请求错误  
  });
})

</script>

<template>
  <!-- <contain> -->
    <index></index>
  <!-- </contain> -->
</template>

<style scoped>
/* template {
  margin: -8px -8px auto;
} */
</style>